#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr[10] = { 100,20,30,50,40,50,43,234,54,120 };
	int i = 0;
	int max = 0;
	for (i = 0; i <= 10; i++)
	{
		if (arr[0] < arr[i])
		{
			max = arr[i];
			arr[i] = arr[0];
			arr[0] = max;
		}
	}
	printf("%d", arr[0]);
	return 0;
}